﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WebApi.Core.IRepository;
using WebApi.Core.IRepository.Base;
using WebApi.Core.IService;
using WebApi.Core.Model.Entity;
using WebApi.Core.Service.Base;

namespace WebApi.Core.Service
{
    public class UserService : BaseServices<UserEntity>, IUserService
    {
        private readonly IUserRepository _userDal;

        public UserService(IBaseRepository<UserEntity> _baseRepository,IUserRepository _userRepository):base(_baseRepository)
        {
            _userDal = _userRepository;
        }

        public async Task<int> GetCount()
        {
            return await _userDal.GetCount();
        }
    }
}
